package com.bone.order.service;

import java.util.List;
import java.util.Map;

import com.bone.order.dao.OrdOrderDAO;
import com.bone.order.dao.OrdOrderProdDAO;
import com.bone.order.dao.OrdSaleServiceDAO;
import com.bone.order.po.OrdOrder;
import com.bone.order.po.OrdOrderProd;
import com.bone.page.Page;

public interface OrderService {

	/**
	 * order 数据列表.
	 * @param parameter
	 * @return
	 */
	Page<OrdOrder> queryOrderPageByParam(Map<String, Object> parameter,int pageSize, int page);
	
	/**
	 * 取符合条件的数量.
	 * @param para
	 * @return
	 */
	Long queryOrderCountByParam(Map<String, Object> para);
	
	/**
	 * 
	 * @param parameter
	 * @return
	 */
	List<OrdOrder> queryOrderListByParam(Map<String, Object> parameter);
	/**
	 * 根据订单ID取订单信息.
	 * @param orderId
	 * @return
	 */
	OrdOrder queryOrderById(Long orderId);
	
	/**
	 * 根据订单号取订单信息
	 * @param orderNo
	 * @return
	 */
	OrdOrder queryOrderByOrderNo(String orderNo);
	//------------------------------------------------------------------------------
	/**
	 * 根据订单ID取订单子产品.
	 * @param orderId
	 * @return
	 */
	List<OrdOrderProd> queryOrdOrderProdListByOrderId(Long orderId);
	
	//-------------------------------------------------------------------------------
	
	 
	
	
	OrdOrderDAO getOrderDAO();

	void setOrderDAO(OrdOrderDAO orderDAO);

	OrdSaleServiceDAO getOrdSaleServiceDAO();

	void setOrdSaleServiceDAO(OrdSaleServiceDAO ordSaleServiceDAO);
	
	public OrdOrderProdDAO getOrderProdDAO();
	
	public void setOrderProdDAO(OrdOrderProdDAO orderProdDAO);
	
}